package ctgu.yao.cloud.util;

import ctgu.yao.cloud.dto.ResultDTO;

public class ResultDTOUtil {
    public static ResultDTO success(Object object){
       ResultDTO resultDTO = new ResultDTO();
        resultDTO.setCode(0);
        resultDTO.setData(object);
        return resultDTO;
    }
    public static ResultDTO fail(){
        ResultDTO resultDTO =new ResultDTO();
        resultDTO.setCode(-1);
        return resultDTO;
    }
}
